<template>
<div>
  <h2 style="text-align: center">AnotherView</h2>
  <hr>
</div>
</template>

<script>
export default {
  name: "AnotherView",
  data(){
    return{

    }
  },
  mounted() {
    //判断一下能否从session中获取一个名字叫mytitle的属性，
    //能取出来说明是同一次会话，不能取出来说明是新会话
    if(sessionStorage.getItem("mytitle")){
      let msg = sessionStorage.getItem("mytitle");
      console.log(msg);
    }
  }

}
</script>

<style scoped>

</style>